package com.leo.foodmaster.commons.config.security;

import org.springframework.security.core.Authentication;
import org.springframework.security.web.authentication.logout.LogoutSuccessHandler;
import org.springframework.stereotype.Component;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 自定义注销成功处理器
 * </p>
 *
 * @author ：Leo
 * @since ：2021-06-18 14:12
 */
@Component
public class CustomLogoutSuccessHandler implements LogoutSuccessHandler {
    /**
     * 退出成功处理
     * @param request request
     * @param response response
     * @param authentication authentication
     */
    @Override
    public void onLogoutSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) {

    }
}
